package com.kauto.gps.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "gps.ftp")
public class GpsFtpProperties {
    public static String ip;
    public static int port;
    public static String user;
    public static String pwd;
    public static String rootDir;

    public void setIp(String ip) {
        GpsFtpProperties.ip = ip;
    }

    public void setPort(int port) {
        GpsFtpProperties.port = port;
    }

    public void setUser(String user) {
        GpsFtpProperties.user = user;
    }

    public void setPwd(String pwd) {
        GpsFtpProperties.pwd = pwd;
    }

    public void setRootDir(String rootDir) {
        GpsFtpProperties.rootDir = rootDir;
    }
}
